topics = ["时政","财经","社会","科技","体育","娱乐","游戏","时尚","股票","房产","彩票","家居","教育","星座"]
domains = ["经济","政治","核","军事","科技","社会","文化","国土","网络","生态","资源","金融","太空","极地","深海","生物","人工智能","数据","粮食","海外利益"]
xinference_url = "10.26.32.84"
xinference_port = 6001
model_uid = "qwen-sft-v1"
limit_len = 1000
index_new = {
    "mappings": {
        "properties": {
            "id": {
                "type": "keyword"
            },
            "key": {
                "type": "keyword"
            },
            "subject": {
                "type": "keyword"
            },
            "tenant_subject": {
                "type": "keyword"
            },
            "title": {
                "type": "text"
            },
            "platform": {
                "type": "keyword"
            },
            "platform_name": {
                "type": "keyword"
            },
            "participle": {
                "type": "keyword"
            },
            "url": {
                "type": "keyword"
            },
            "desc": {
                "type": "text"
            },
            "v_locs": {
                "type": "keyword"
            },
            "v_pers": {
                "type": "keyword"
            },
            "v_orgs": {
                "type": "keyword"
            },
            "v_keywords": {
                "type": "keyword"
            },
            "presenter": {
                "type": "keyword"
            },
            "v_ssly": {
                "type": "keyword"
            },
            "insert_time": {
                "type": "date",
                "format": "yyyy-MM-dd HH:mm:ss||epoch_second"
            },
            "max_rank_top": {
                "type": "integer"
            },
            "max_hot_value": {
                "type": "integer"
            },
            "duration": {
                "type": "integer"
            },
            "vector": {
                "type": "dense_vector",
                "dims": 512,
                "index": False
            }
        }
    },
    "settings": {
        "number_of_shards": 30,
        "number_of_replicas": 1,
        "max_result_window": 100000
    }
}

# 用户名
ELASTIC_USERNAME = "elastic"
# 用户密码
ELASTIC_PASSWORD = "iie123$%^"
# 集群地址
ELASTIC_ADDRESS = ["http://10.26.32.92:9222"]
INDEX_NAME = "test_internet"
WRITE_NAME = "new_internet"
BATCH_SIZE_ES = 1000
model_url = 'http://localhost:6003/model/extract/vector'
if __name__ == "__main__":
    print(topics)
    print([d + "领域" for d in domains])
